package cn.com.thinker.gen.maven.dto;

import com.baomidou.mybatisplus.generator.config.ConstVal;

public class TemplateDTO {
	
	private String entity = ConstVal.TEMPLATE_ENTITY;

    private String service = ConstVal.TEMPLATE_SERVICE;

    private String serviceImpl = ConstVal.TEMPLATE_SERVICEIMPL;

    private String mapper = ConstVal.TEMPLATE_MAPPER;

    private String xml = ConstVal.TEMPLATE_XML;

    private String controller = ConstVal.TEMPLATE_CONTROLLER;
    
    private String cleanStr(String source){
    	if("false".equalsIgnoreCase(source) 
    			|| "null".equalsIgnoreCase(source)){
    		source = null;
		}  	
    	return source;
    }

	public String getEntity() {
		return entity;
	}

	public void setEntity(String entity) {
		
		this.entity = cleanStr(entity);
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = cleanStr(service);
	}

	public String getServiceImpl() {
		return serviceImpl;
	}

	public void setServiceImpl(String serviceImpl) {
		this.serviceImpl = cleanStr(serviceImpl);
	}

	public String getMapper() {
		return mapper;
	}

	public void setMapper(String mapper) {
		this.mapper = cleanStr(mapper);
	}

	public String getXml() {
		return xml;
	}

	public void setXml(String xml) {
		this.xml = cleanStr(xml);
	}

	public String getController() {
		return controller;
	}

	public void setController(String controller) {
		this.controller = cleanStr(controller);
	}
    
    

}
